﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ShopModel;
using ShopBLL;

public partial class PayPal : System.Web.UI.Page
{
    #region VARIABLES

    protected Realization order;
    protected string amount;
    protected string paymentType;
    protected string ShopUrl, Notify, ShopUrlR;

    #endregion VARIABLES

    #region PAGE EVENTS

    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["OrderData"] != null && Session["BasketItems"] != null)
        {
            order = (Realization)Session["OrderData"];

            amount = ((order.TotalAmountBrutto + order.ShipmentCost)).ToString("F2").Replace(",", ".");

            ShopUrlR = ShopModel.Settings.ShopUrl + Resources.Language.UrlOrderResult + ".aspx?paypal=0";
            ShopUrl = ShopModel.Settings.ShopUrl + Resources.Language.UrlOrderResult + ".aspx?paypal=1";
            Notify = ShopModel.Settings.ShopUrl + "paypalresulthandler.ashx?var_chk=" + order.IDRealization;
        }
    }

    #endregion PAGE EVENTS
}
